package com.paff.mw;

import com.paff.mw.service.Status;
import com.paff.mw.service.ThesisWebService;
import com.paff.mw.service.ThesisWsBeanService;
import com.paff.mw.types.ThesisProposal;

public class ThesisHandler {
	public void saveThesisProposal(ThesisProposal proposal) {
		ThesisWsBeanService service = new ThesisWsBeanService();
		ThesisWebService port = service.getThesisWebServicePort();
		com.paff.mw.service.ThesisProposal request = new com.paff.mw.service.ThesisProposal();
//		request.setStatus(Status.fromValue(proposal.getStatus().toString()));
		request.setStudent(proposal.getStudent());
		request.setSupervisorID(proposal.getSupervisorID());
		String proposalID = port.saveThesisProposal(request);
		System.out.println(proposalID);
	}
	
	public void updateProposalStatus(){}
}
